package com.itheima.day05.localdate;

import java.time.LocalDate;
import java.util.ArrayList;

public class Test {
    public static void main(String[] args)
    {
        ArrayList<LocalDate> list = new ArrayList<>();
        LocalDate date = LocalDate.now();
        for (int i = 0; i < 30; i++) {
            list.add(date);
            date = date.minusDays(1);
        }
        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i));
        }
    }
}
